package com.msb.exception;

/**
 * 线程应该是cpu先撑不住，而不是栈空间
 */
public class StackNumberExceptionTest {
    public static void main(String[] args) {
        while (true){
            int i = 0;
            new Thread(()->{
                try {
                    Thread.sleep(10*1000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }).start();
            System.out.println(i++);
        }
    }
}
